<%--
  @filename index.jsp
  @directory /WebRoot/jsp/system/Hospital
  @description 医院管理
  @author  
  @date 2013-02-19 10:00:59
  @version v0.1
--%>
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<%@include file="/head.jsp"%>
<script src="jsp/system/Hospital/index.js" type="text/javascript"></script>
</head>
<body>

	<div class="tool-bar">
		<a class="easyui-linkbutton" iconCls="icon-add" plain="true" href="javascript:void(0);" onclick="btn_add();">添加</a>
		<a class="easyui-linkbutton" iconCls="icon-edit" plain="true" href="javascript:void(0);" onclick="btn_edit();">修改</a>
		<a class="easyui-linkbutton" iconCls="icon-delete" plain="true" href="javascript:void(0);" onclick="btn_delete();">删除</a>
	</div>

	<div class="context">
		<table id="center-grid-data" url="system/Hospital/get" tmpl="#template" pager="#pager" style="width: 800px;">
			<thead class="datagrid-header">
				<tr>
					<th style="width: 30px;"><input type="checkbox" onclick="$('.easyui-simplegrid').simplegrid('selectAll');" /></th>
					<th column="mingc">医院名称</th>
					<th column="jianc">医院简称</th>
					<th column="suosd">所属地</th>
					<th column="dianh">联系电话</th>
					<th column="dizhi">医院地址</th>
				</tr>
			</thead>
			<tbody>
			</tbody>
		</table>
		<script id="template" type="text/x-jquery-tmpl">
			<tr>
				<td name="bh" value="{{= bh}}"><input type="checkbox"/></td>
				<td name="mingc">{{= mingc}}</td>
				<td name="jianc">{{= jianc}}</td>
				<td name="suosd">{{= suosd}}</td>
				<td name="dianh">{{= dianh}}</td>
				<td name="dizhi">{{= dizhi}}</td>
			</tr>
		</script>
	</div>
	<!-- 分页 -->
	<div id="pager" class="pager"></div>

	<div id="search-div" class="easyui-window" iconcls="icon-form" closed="true" style="width: 640px;height: 300px;" title="高级搜索">
		<form id="searchform" action="" method="post">
			<table cellpadding="0" cellspacing="0" class="table" width="100%">
				<tr>
					<td class="searchtext" width="18%">医院名称</td>
					<td class="searchcontext">
						<input name="mingc" type="text" style="width:185px" />
					</td>
				</tr>
				<tr>
					<td class="searchtext" width="18%">医院简称</td>
					<td class="searchcontext">
						<input name="jianc" type="text" style="width:185px" />
					</td>
					<td class="searchtext" width="18%">所属地</td>
					<td class="searchcontext">
						<input name="suosd" type="text" style="width:185px" />
					</td>
				</tr>
				<tr>
					<td class="searchtext" width="18%">联系电话</td>
					<td class="searchcontext">
						<input name="dianh" type="text" style="width:185px" />
					</td>
					<td class="searchtext" width="18%">医院地址</td>
					<td class="searchcontext">
						<input name="dizhi" type="text" style="width:185px" />
					</td>
				</tr>
				<tr>
					<td align="center" colspan="4">
						<input type="button" value="搜索" onclick="DASS.SearchData();" />
						<input type="button" value="重置" onclick="DASS.SearchReset();" />
						<input type="button" value="关闭" onclick="DASS.SearchExit();" />
					</td>
				</tr>
			</table>
		</form>
	</div>

	<div id="hospital-div" class="easyui-window" modal="true" closed="true" resizable="false" minimizable="false" maximizable="false" collapsible="false" iconcls="icon-add" style="width: 450px; height: 200px; padding: 5px;" title="添加医院">
		<form id="hospital-form">
			<input type="hidden" name="hospital.bh" value="" />
			<table width="100%" class="table">
				<tr>
					<td>医院名称:</td>
					<td><input name="hospital.mingc" type="text" style="width:100px;" /></td>
					<td>医院简称:</td>
					<td><input name="hospital.jianc" type="text" style="width:100px;" /></td>
				</tr>
				<tr>
					<td>医院电话:</td>
					<td><input name="hospital.dianh" type="text" style="width:100px;" /></td>
					<td>所属地:</td>
					<td>
						<select name="hospital.suosd" style="width:105px;">
							<c:forEach items="${coding:list('t_bmb_xingzqh', 'xingzlb=4')}" var="i">
							<option value="${i.BIANH}">${i.MINGC}</option>
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<td>医院地址:</td>
					<td colspan="3"><input name="hospital.dizhi" type="text" style="width:300px;" /></td>
				</tr>
				<tr>
					<td colspan="4">
						<button id="hospital-button" type="button">提交</button>
						&nbsp;&nbsp;&nbsp;&nbsp;
						<button type="button" onclick="$('#hospital-form')[0].reset();$('#hospital-div').window('close');">取消</button>
					</td>
				</tr>
			</table>
		</form>
	</div>

</body>
</html>
